package com.lock;

/**
 * @author DingZhenYun
 * @create 2019-03-17 20:28
 */
public class ThreadDemo {
    public static void main(String[] args) {
        Resource r = new Resource();

        Input in = new Input(r);
        Output out = new Output(r);

        Thread tin = new Thread(in);
        Thread tout = new Thread(out);

        tin.start();
        tout.start();
    }
}
